<template>
  <div id="app">
    <router-view v-if="isRouterAlive" ref="routerview" />
  </div>
</template>

<script>
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      isRouterAlive: true,
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(() => {
        this.isRouterAlive = true;
      });
    },
    getPlotType() {
      // return this.$refs.routerview.handleGetPlotType();
    },
    //是否开启坐标转换
    getCoordinatesConversion() {
      // return this.$refs.routerview.handleGetCoordinatesConversion();
    },
    // 点击标签打开弹框
    openDialog(data) {
      this.$refs.routerview.openDialog(data);
    },
  },
  mounted() {
    window.VueApp = this;
  },
};
</script>
